<template>
  <div id="top">
    <dv-decoration-5 class="top-dec" :dur="20" />
    <div class="top-title">{{title}}</div>
  </div>
</template>

<script>
export default {
  name: 'Top',
  data: function () {
    return {
      title: '钛钢数据库展示'
    }
  }

}
</script>

<style lang="scss">
#top{
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  .top-dec{
    width: 45%;
    height: 60px;
    margin-top: 30px;
  }
  .top-title{
    position: absolute;  /*绝对定位*/
    font-size: 30px;
    font-weight: bold;
    left: 50%;
    top: 15px;
    transform: translateX(-50%);
  }
}
</style>
